<?php get_header(); ?>


		<?php if (have_posts()) : ?>

		 <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>				
		<h1 class="pagetitle">Archive for the '<?php echo single_cat_title(); ?>' Category</h1>
		
 	  <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
		<h1 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h1>
		
	 <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
		<h1 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h1>

		<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
		<h1 class="pagetitle">Archive for <?php the_time('Y'); ?></h1>
		
	  <?php /* If this is a search */ } elseif (is_search()) { ?>
		<h1 class="pagetitle">Search Results</h1>
		
	  <?php /* If this is an author archive */ } elseif (is_author()) { ?>
		<h1 class="pagetitle">Author Archive</h1>

		<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
		<h1 class="pagetitle">Blog Archives</h1>

		<?php } ?>


<p><?php posts_nav_link('','','&laquo; Previous Entries') ?><br />
<?php posts_nav_link('','Next Entries &raquo;','') ?></p>


		<?php while (have_posts()) : the_post(); ?>
		
<h1 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<span class="date"><?php the_time('l F j, Y'); ?> | <?php comments_popup_link(__('No comments yet'), __('One comment'), __('% comments')); ?> <?php edit_post_link(__('Edit This')); ?><br />
Posted in: <?php the_category(',') ?>
</span><br /><br />
				

					<?php the_content() ?>

				
				<!--
				<?php trackback_rdf(); ?>
				-->

	
		<?php endwhile; ?>

<p><?php posts_nav_link('','','&laquo; Previous Entries') ?><br />
<?php posts_nav_link('','Next Entries &raquo;','') ?></p>

	
	<?php else : ?>

		<h1 class="center">Not Found</h1>
		<?php include (TEMPLATEPATH . '/searchform.php'); ?>

	<?php endif; ?>
		
	</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>